package com.yxw.live_vod_boot.controller;



import com.yxw.yxnet_cd_center.common.utils.BaseResult;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Autowired;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import com.yxw.live_vod_boot.utils.PageUtils;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import io.swagger.annotations.Api;
import com.yxw.live_vod_boot.dto.LiveShopApplyAddressPunishDTO;
import com.yxw.live_vod_boot.dto.LiveShopApplyAddressPunishAddDTO;
import com.yxw.live_vod_facade.dto.LiveShopApplyAddressPunishQueryDTO;
import com.yxw.live_vod_boot.entity.LiveShopApplyAddressPunishEntity;
import com.yxw.live_vod_boot.service.ILiveShopApplyAddressPunishService;
 
 
 
/*** 
*@author Jiaxu.Huang
*@date 2024/1/23 16:40:16
*@update 2024/1/23 16:40:16
**/
@Api(value = "VIEW", tags = {"VIEW管理"},description="VIEW管理")
@RestController
@RequestMapping("/liveshopapplyaddresspunish")
public class LiveShopApplyAddressPunishController
{
    @Autowired
    private ILiveShopApplyAddressPunishService oLiveShopApplyAddressPunishService;


    /*** 
    * 自定义分页查询VIEW
    * @param currentPage 当前页
    * @param pageSize 分页大小
    * @param oLiveShopApplyAddressPunishDTO
    * @return Page
    **/
    @ApiOperation(value ="自定义分页查询VIEW",notes = "此接口用于自定义分页查询VIEW信息")
    @ApiResponses({@ApiResponse(code = 200,message = "OK",response = LiveShopApplyAddressPunishEntity.class),})
    @PostMapping("/liveShopApplyAddressPunishSelectPage")
    public BaseResult liveShopApplyAddressPunishSelectPage(@RequestBody LiveShopApplyAddressPunishQueryDTO oLiveShopApplyAddressPunishQueryDTO)
    {
        return BaseResult.success(PageUtils.get(oLiveShopApplyAddressPunishService.selectLiveShopApplyAddressPunishPage(oLiveShopApplyAddressPunishQueryDTO.getCurrentPage(),oLiveShopApplyAddressPunishQueryDTO.getPageSize(),oLiveShopApplyAddressPunishQueryDTO)));
    }
    /*** 
    * 自定义不分页查询VIEW
    * @param oLiveShopApplyAddressPunishDTO
    * @return List<LiveShopApplyAddressPunishEntity>
    **/
    @ApiOperation(value ="自定义不分页查询VIEW",notes = "此接口用于自定义不分页查询VIEW信息")
    @ApiResponses({@ApiResponse(code = 200,message = "OK",response = LiveShopApplyAddressPunishEntity.class),})
    @PostMapping("/liveShopApplyAddressPunishSelectList")
    public BaseResult liveShopApplyAddressPunishSelectList(@RequestBody LiveShopApplyAddressPunishQueryDTO oLiveShopApplyAddressPunishQueryDTO)
    {
        return BaseResult.success(oLiveShopApplyAddressPunishService.selectLiveShopApplyAddressPunishList(oLiveShopApplyAddressPunishQueryDTO));
    }
    /*** 
    * 自定义统计VIEW
    * @param oLiveShopApplyAddressPunishDTO
    * @return int
    **/
    @ApiOperation(value ="自定义统计VIEW",notes ="此接口用于自定义统计VIEW记录条数")
    @PostMapping("/liveShopApplyAddressPunishSelectCount")
    public BaseResult liveShopApplyAddressPunishSelectCount(@RequestBody LiveShopApplyAddressPunishQueryDTO oLiveShopApplyAddressPunishQueryDTO)
    {
        return BaseResult.success(oLiveShopApplyAddressPunishService.selectLiveShopApplyAddressPunishCount(oLiveShopApplyAddressPunishQueryDTO));
    }
}
    

